package com.cwm.test.liability.impl;

import com.cwm.test.liability.Handler;

// 具体处理者1
class ConcreteHandler1 extends Handler {
    @Override
    public void handleRequest(int request) {
        if (request <= 10) {
            System.out.println("ConcreteHandler1 handles the request: " + request);
        } else if (successor != null) {
            successor.handleRequest(request);
        }
    }
}